package com.wxmit.base.constant;

/**
 * @Description 系统常量
 * @Author huangxiong
 * @Date 2022/7/15 18:06
 * @Version V1.0
 */
public class ShushanConstants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";


    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";



    /**
     * （业务）基础信息 cache key
     */
    public static final String BASE_DICT_KEY = "base_dict";

    /**
     * 资源映射路径 前缀
     */
    public static final String  RESOURCE_PREFIX = "/profile";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;
}
